<template>
  <div class="homeModule">
    <div class="homeHeader">
      <div class="user">
        <i class="avatarImg" @click="toEditorUser">
          <img :src="$store.state.userInfo.src ||require('src/assets/imgs/use.png')">
        </i>
        <p class="userName">{{$store.state.userInfo.nickName}} </p>
        <p class="userName" style="margin-top:10px">{{$store.state.userInfo.organizationName}} </p>
      </div>
    </div>
    <div class="quickTag">
      <van-cell title="修改个人信息" is-link  @click="pushUrl" />
      <!-- <van-cell title="重置密码" is-link url="/#/editorUser/2" /> -->
    </div>
    <div class="homeMenu">
      <div class="container clearfix">
        <div class="item" @click="toList('myArticle')">
          <div class=" ">
            <img src="../../assets/imgs/topic.png" alt="">
          </div> <span class="name">我的话题</span>
        </div>
        <div class="item" @click="toList('myComment&reply/1')">
          <div class=" ">
            <img src="../../assets/imgs/comment.png" alt="">
          </div> <span class="name">我的评论</span>
        </div>
        <div class="item" @click="toList('myComment&reply/2')">
          <div class=" ">
            <img src="../../assets/imgs/replay.png" alt="">
          </div> <span class="name">我的回复</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
    'methods': {
        toList(name) {
            this.$router.push(`/${name}`);
        },
        pushUrl(){
            this.$router.push({'path':'/editorUser/1'});
        },
        toEditorUser(){
            this.$router.push({
                'path':'/editorUser/1'
            });
        }
    }
};

</script>
<style  scoped>
@import '~@/views/my/index.css';
</style>